<div class="bjui-pageContent">
    <div class="bjui-pageHeader" style="background-color:#fefefe; border-bottom:none;">
        <form data-toggle="ajaxsearch" data-options="{searchDatagrid:$.CurrentNavtab.find('#webuser-lists-table')}">
            <fieldset>
                <legend style="font-weight:normal;">搜索：</legend>
                <div style="margin:0; padding:1px 5px 5px;">

                    <span>姓名：</span>
                    <input type="text" name="truename" class="form-control" size="30">

                    <span>手机号：</span>
                    <input type="text" name="mobile" class="form-control" size="30">

                    <div class="btn-group">
                        <button type="submit" class="btn-green" data-icon="search">开始搜索</button>
                        <button type="reset" class="btn-orange" data-icon="times">重置</button>
                    </div>
                </div>
            </fieldset>
        </form>
    </div>
    <table class="table table-bordered" id="webuser-lists-table" data-toggle="datagrid" data-options="{
        tableWidth: '100%',
        width: '100%',
        height: '100%',
        gridTitle : '注册用户列表',
        showToolbar: true,
        toolbarItem: '',
        local: 'remote',
        dataUrl: '/admin/company/webuser-lists',
        linenumberAll: false,
        showLinenumber: false,
        filterThead: false,
        editUrl: '/admin/company/webuser-edit',
        editCallback:editCallback,
        delUrl:'/admin/company/webuser-delete',
        delPK:'id',
        delConfirm: true,
    }">
        <!--    showEditbtnscol: '操作',-->
        <thead>
        <tr>
            <th data-options="{name:'truename',align:'center',width:300}">姓名</th>
            <th data-options="{name:'mobile',align:'center',width:300}">手机号</th>
            <th data-options="{name:'company_title',align:'center',width:150}">所属企业</th>
            <th data-options="{name:'department_title',align:'center',width:150}">所属部门</th>
        </tr>
        </thead>
    </table>
</div>
<script type="text/javascript">

    function permission_assignment(value, data)
    {
        var html = '<button type="button" class="btn btn-info" data-toggle="navtab" data-options="{id:\'webuser-set-navtab\',fresh:true, url:\'/admin/company/webuser-set\', title:\'设置部门\', data:{id:' + data.id + '}}"><i class="fa fa-sitemap"></i>设置部门</button>'
        return html
    }
</script>